<?php

namespace App\Events;


class EmailEvent extends Event
{

    private $to;
    private $subject;
    private $body;
    private $altbody;

    private $isHtml;


    public function __construct($to, $subject, $content, $isHtml=true)
    {
        $this->to = $to;
        $this->subject = $subject;
        $this->body = $content;
        $this->isHtml = $isHtml;
    }

    public function setAltBody($content)
    {
        $this->altbody = $content;
    }

    public function getAddress()
    {
        return $this->to;
    }

    public function getSubject()
    {
        return $this->subject;
    }

    public function getBody()
    {
        return $this->body;
    }

    public function getAltBody()
    {
        return $this->altbody;
    }

    public function isHtml()
    {
        return $this->isHtml;
    }
}
